package com.zhbit.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.NoticemangerService;
import com.zhbit.Service.PersonService;
import com.zhbit.table.Person;

public class PersonsettingAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
private long count;
private NoticemangerService ns;

/**
 * @return the count
 */
public long getCount() {
	return count;
}
/**
 * @param count the count to set
 */
public void setCount(long count) {
	this.count = count;
}
/**
 * @return the ns
 */
public NoticemangerService getNs() {
	return ns;
}
/**
 * @param ns the ns to set
 */
public void setNs(NoticemangerService ns) {
	this.ns = ns;
}

/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

public String execute() throws Exception {
		

	setCount(ns.count(id));
			return SUCCESS;
		
		
	
	}
}
